package com.migo.service.impl;

import com.migo.dao.OpeningAdvertisementDao;
import com.migo.entity.OpeningAdvertisementEntity;
import com.migo.service.OpeningAdvertisementService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;



@Service("openingAdvertisementService")
public class OpeningAdvertisementServiceImpl implements OpeningAdvertisementService {
	@Autowired
	private OpeningAdvertisementDao openingAdvertisementDao;
	
	@Override
	public OpeningAdvertisementEntity queryObject(Long id){
		return openingAdvertisementDao.queryObject(id);
	}
	
	@Override
	public List<OpeningAdvertisementEntity> queryList(Map<String, Object> map){
		return openingAdvertisementDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return openingAdvertisementDao.queryTotal(map);
	}
	
	@Override
	public void save(OpeningAdvertisementEntity openingAdvertisement){
		openingAdvertisementDao.save(openingAdvertisement);
	}
	
	@Override
	public void update(OpeningAdvertisementEntity openingAdvertisement){
		openingAdvertisementDao.update(openingAdvertisement);
	}
	
	@Override
	public void delete(Long id){
		openingAdvertisementDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Long[] ids){
		openingAdvertisementDao.deleteBatch(ids);
	}

	@Override
	public OpeningAdvertisementEntity queryOpeningImage(Map<String, Object> params) {
		return openingAdvertisementDao.queryOpeningImage(params);
	}

}
